POV-Ray : Newsgroups : povray.general : Parse Error: No matching } in 'pigment', string identifier found instead : Re: Parse Error: No matching } in 'pigment', string identifier found instea= Server Time
29 Apr 2024 10:03:22 EDT (-0400)
  Re: Parse Error: No matching } in 'pigment', string identifier found instea=  
From: societyofrobots
Date: 18 Feb 2009 06:55:00
Message: <web.499bf5a7692c33e4832722510@news.povray.org>
Playing around with it, I managed to entirely avoid the macro call. Basically
using 100% Eagle3D code and nothing that I wrote.

Well, the code still had an error, meaning the parser bug is specifically in
this below code. It seems to not like pigment{color_sub}.

I suspect it has something to do with "neu Parameter K = Anschlussbreite", which
although I don't speak German, I assume it means a new parameter was added but
code not tested.

/**********************************************************************************************************************
**********************
//Grundmakro fuer SMD-Keramik-Chip-Kondensator (neu Parameter K =
Anschlussbreite)
//basiert auf Makro von Walter Muecke
***********************************************************************************************************************
*********************/
#macro CAP_SMD_CHIP_GRND(L,W,T,K)
union{
 superellipsoid{<0.25-(L+W)/150, 0.25-(L+W)/150> pigment{color_sub}
scale<L/2,W/2,T/2> }     //Grundkoerper braun
 superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2>
translate <(L-K)/2,0,0> texture{col_silver}}      //rechter Anschluss
 superellipsoid{<0.25-(L+W)/200, 0.25-(L+W)/200> scale<(K+L/100)/2,W/2,T/2>
translate <-(L-K)/2,0,0> texture{col_silver}}      //linker Anschluss
 rotate<90,0,0>
 translate<0,T/2,0>
}
#end

#macro CAP_SMD_CHIP_0805(color_sub)
object{CAP_SMD_CHIP_GRND(2.0,1.25,1.3,0.5)}
#end


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.